#include <iostream>

#if 0
int add(int a, int b)
{
    std::cout<<"int:"<<a<<std::endl;
    return a + b;
}
/* 错误 
    double add(int a, int b)
    double add(int a, int b, int c = 0)
*/
double add(short a, short b)
{
    std::cout<<"short:"<<a<<std::endl;
    return a + b;
}

double add(short a, short b, int)
{
    std::cout<<"short:"<<a<<std::endl;
    return a + b;

}

int main()
{
    std::cout<<"sdfdf"<<std::endl;
    // std::cout<<add(1,3)<<std::endl;
    return 0;
}
#else

#define SIZE
const  short size = 10.7;
void add(int a)
{
    std::cout<<"int:"<<a<<std::endl;

}

void add(short a)
{
    std::cout<<"short:"<<a<<std::endl;
    
}
int main()
{
    add(size);
    // add(SIZE);
    
    return 0;
}

#endif
